<?php

namespace app\api\validate;

use think\Validate;

class Book extends Validate
{
    protected $rule = [
        'id' => 'require',
        'title' => 'require',
    ];
    protected $message = [
        'id.require' => '专题标识不能为空',
        'title.require' => '专题标题不能为空'
    ];
    protected $scene = [
        'create' => ['title'],
        'update' => ['id', 'title']
    ];
}
